<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use app\assets\AppAsset;
use yii\captcha\Captcha;

/* @var $this yii\web\View */
/* @var $form yii\widgets\ActiveForm */
/* @var $model app\models\LoginForm */
$asset = new AppAsset;
$this->title = yii::t('Site','2048 Online Game');
?>
<div class="col-lg-8">
<img src="<?= $asset->baseUrl?>/images/通知.png" width=95% height=400></img>
</div>
<div class="col-lg-4">
<div class="site-login">
    <h1 style="text-align:center"><?= Html::encode($this->title) ?></h1>

    <?php $form = ActiveForm::begin([
        'id' => 'login-form',
    ]); ?>

    <?= $form->field($model, 'username') ?>

    <?= $form->field($model, 'password')->passwordInput() ?>

    <?= $form->field($model, 'rememberMe', [])->checkbox() ?>
    <div class="form-group">
    <?= Html::a(yii::t('Site', 'Retrieve Pwd'), ['user/retrievepassword'],['class'=>'btn btn-success pull-right','style'=>'margin-top:-40px;'])?>
    </div>
    <?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [
        'template' => '<div class="row"><div class="col-lg-4">{image}</div><div class="col-lg-8">{input}</div></div>',
    ]) ?>

    <div class="form-group">
        <?= Html::submitButton(Yii::t('User','Click To Login'), ['class' => 'btn btn-primary', 'name' => 'login-button' ,'style'=>'width:100%']) ?>
    </div>

    <?php ActiveForm::end(); ?>
</div>
</div>
